﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="QuanLiHoaDon.aspx.cs" Inherits="FastDeal.Admin.QuanLiHoaDon" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server" CssClass="hoaDon_panel" >
    <div  class="hoaDon_TieuDe"> 
        <asp:DropDownList ID="DropDownList2" runat="server" Height="41px" Width="193px" 
            AutoPostBack="True" onselectedindexchanged="DropDownList2_SelectedIndexChanged">
        </asp:DropDownList>
    </div>
    <div class="hoaDon_div_gvHoaDon"> 
        <asp:GridView ID="GV_DSHoaDon" runat="server" AutoGenerateColumns="False" Height="23px" 
            Width="739px" onrowdatabound="GV_DSHoaDon_RowDataBound" 
            onrowcommand="GV_DSHoaDon_RowCommand" onrowediting="GV_DSHoaDon_RowEditing" 
            onrowupdating="GV_DSHoaDon_RowUpdating" 
            onselectedindexchanging="GV_DSHoaDon_SelectedIndexChanging">
            <Columns>
                <asp:TemplateField HeaderText="Mã Hóa Đơn" Visible="False">
                    <EditItemTemplate>
                        <asp:Label ID="lb_MaHoaDon" runat="server" Text='<%# Bind("MaHoaDon") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("MaHoaDon") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BackColor="#009933" Height="40px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="UserID">
                    <EditItemTemplate>
                        <asp:Label ID="Label6" runat="server" Text='<%# Bind("UserID") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("UserID") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BackColor="#009933" ForeColor="White" Width="10px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày Đặt Mua">
                    <EditItemTemplate>
                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("NgayDatMua") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("NgayDatMua") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BackColor="#009933" ForeColor="White" Height="50px" />
                    <ItemStyle Height="40px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Địa Chỉ Giao Hàng">
                    <EditItemTemplate>
                        <asp:Label ID="Label8" runat="server" Text='<%# Bind("DiaChiGiaoHang") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# Bind("DiaChiGiaoHang") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BackColor="#009933" ForeColor="White" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tổng Tiền">
                    <EditItemTemplate>
                        <asp:Label ID="Label9" runat="server" Text='<%# Bind("TongTien") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("TongTien") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BackColor="#009933" ForeColor="White" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tình Trạng" Visible="False">
                    <EditItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("TinhTrang") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lb_TinhTrang" runat="server" Text='<%# Bind("TinhTrang") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowEditButton="True" UpdateText="Xác Nhận" CancelText="" />
            </Columns>
            
        </asp:GridView>
    </div>
    <div class="hoaDon_div_TongTien">  
        <asp:Panel ID="Panel2" runat="server" CssClass="hoaDon_pn_TongTien">
         <div class="hoaDon_LbTongTien1">
            <asp:Label ID="Label1" runat="server" Text="Tổng Doanh Thu: "></asp:Label></div>
        <div class="hoaDon_LbTongTien2">
            <asp:Label ID="lb_tongDoanhThu" runat="server" Text="Label"></asp:Label></div>
        </asp:Panel>
    </div>
    <div class="hoaDon_TieuDe">
        <asp:Panel ID="Panel3" runat="server" Height="37px" >
            
            XEM CÁC BÁO CÁO THỐNG KÊ</asp:Panel>
    </div>
    <div class="hoadon_ForDropDown">
         <div>
             <div class="hoaDon_Div_Label"> Hóa đơn theo tháng</div>
             <div><asp:DropDownList ID="dr_TrongThang" runat="server" Height="30px" Width="273px">
             </asp:DropDownList></div>
         </div>
          <div>
          <div class="hoaDon_Div_Label">Hóa đơn theo khuyến mãi</div>
          <div><asp:DropDownList ID="dr_MotKhuyenMai" runat="server" Height="30px" 
                  Width="273px">
             </asp:DropDownList></div>
         </div>
          <div>
            <div class="hoaDon_Div_Label">Hóa đơn theo doanh nghiệp</div>
            <div ><asp:DropDownList ID="dr_DoanhNghiep" runat="server" Height="30px" 
                  Width="273px">
             </asp:DropDownList></div>     
         </div>
    </div>
    </asp:Panel>
</asp:Content>
